<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-16" />
<title>Untitled Document</title>
<link rel="stylesheet" href="<?php echo STATIC_DOMAIN;?>css/reset.css" type="text/css" media="all"/>
<link rel="stylesheet" href="<?php echo STATIC_DOMAIN;?>css/buiding.css" type="text/css" media="all"/>
<script type="text/javascript" src="<?php echo STATIC_DOMAIN;?>js/jquery-1.8.2.min.js"></script>
</head>
<body>
	<div id="warp">
    	<div id="header">
        </div>
        <!-- end header-->
        <div id="content">
        	<div id="leftMenu">
            	<ul class="navi">
                	<li><a>Trang chủ</a></li>
                    <li><a>Giới thiệu</a></li>
                    <li><a>Hướng dẫn</a></li>
                    <li><a>Chat</a></li>
                    <li class="marbottom20"><a>Đăng nhập</a></li>
                    
                	<li><a>Forum</a></li>
                    <li><a>Cốt truyện</a></li>
                    <li><a>Trợ giúp</a></li>
                    <li><a>Liên hệ</a></li>
                    <li><a>Tìm hiểu</a></li>
                    <li><a href="<?php echo site_url("logout");?>">Thoát ra</a></li>
                </ul>
            </div>
        	<div id="viewInfo" class="padtop20 padleft20 tbl-list">
                <table class="tbl-list" width="500">
                    <thead>
                        <tr>
                            <td colspan="2" class="text-center"><label>Gửi thư</label></td>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td><label><?php echo $type==true ? 'Người nhận' : 'Người gửi';?></label></td>
                            <td><?php echo $type==true ? $info['name'] : $info['sender'];?></td>
                        </tr>
                        <tr>
                            <td>Tiêu đề</td>
                            <td class="pad5"><?php echo $info['topic'];?></td>
                        </tr>
                        <tr>
                            <td>Nội dung</td>
                            <td>
                                <div class="wordwrap mail"><?php echo $info['message'];?></div>
                            </td>
                        </tr>
                        <tr>
                            <td class="text-center" colspan="2">
                                <input value="Trả lời" onclick="window.location.href='<?php echo site_url('mess/answer?id='.$id);?>';" type="submit" />
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
     </div>
</body>
</html>